//
//  NewsCell.m
//  CYLTabBarControllerTest
//
//  Created by intest_zyy on 2019/1/17.
//  Copyright © 2019 coder_zyy. All rights reserved.
//

#import "NewsCell.h"
#import "UITableViewCell+FSAutoCountHeight.h"

@interface NewsCell()

/** 图片 */
@property (weak, nonatomic) IBOutlet UIImageView *imageV;
/** 标题 */
@property (weak, nonatomic) IBOutlet UILabel *titleLab;
/** 日期 */
@property (weak, nonatomic) IBOutlet UILabel *dateLab;
/** 点赞按钮 */
@property (weak, nonatomic) IBOutlet UIButton *tagsBtn;
/** 点赞数 */
@property (weak, nonatomic) IBOutlet UILabel *tagsCountLab;
/** 评论按钮 */
@property (weak, nonatomic) IBOutlet UIButton *reviewBtn;
/** 评论数 */
@property (weak, nonatomic) IBOutlet UILabel *reviewCountLab;
/** 线条 */
@property (weak, nonatomic) IBOutlet UIImageView *lineV;

@end

@implementation NewsCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.FS_cellBottomView = self.lineV;
    }
    return self;
}

- (IBAction)clickTagsBtn:(id)sender {
    if (self.clickTagsBtnBlock) {
        self.clickTagsBtnBlock(self);
    }
}

- (IBAction)clickReviewBtn:(id)sender {
    if (self.clickReviewBtnBlock) {
        self.clickReviewBtnBlock(self);
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    // Configure the view for the selected state
}

@end
